package cn.z2huo.knowledge.basic.operator.sum;

/**
 * i++ 和 ++i 测试
 */
class IPPAndPPITest {

    public static void main(String[] args) {
        int i = 100;
        System.out.println(i++);
        System.out.println(i);
        System.out.println();

        i = 100;
        set(i++);
        System.out.println(i);
        System.out.println();

        i = 100;
        set(++i);
        System.out.println(i);
    }

    public static void set(int num) {
        System.out.println(num);
    }

}
